#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#define RATE_DA 0.10
#define RATE_DE 0.05
#define INIT_AMT 100
int main(void) {
	double daphe = INIT_AMT;
	double deidre = INIT_AMT;
	int years = 0;
	while (deidre <= daphe) {
		daphe += RATE_DA * INIT_AMT;
		deidre += RATE_DE * deidre;
		years++;
	}
	printf("investment values after %d years:\n", years);
	printf("Daphe:$%.2f\n", daphe);
	printf("Deidre:$%.2f\n", deidre);
	return 0;
}